<template>
	<view class="ts-flex ts-row ts-flex-item">
		<video class="player" id="myVideo" :src="currentVideoUrl" @error="videoErrorCallback" controls direction="90" autoplay="true"></video>
	</view>
</template>

<script>
	export default {
		data: {
			currentVideoUrl:'',
		},

		onLoad: function(e) {
			const {
				url,
				title
			} = e;

			if (url) {
				this.currentVideoUrl = url;
			}

		}
	}
</script>

<style>
.player {
	display: flex;
	flex-direction: row;
	flex: 1;
}
</style>
